const path = require('path');

module.exports = {
	entry: './src/index.js',//当前目录下
	output: {
		path: path.resolve(__dirname, 'dist'),//输出目录
	  filename: 'bundle.js'//输出文件名
	},
	resolve: {
		alias: {
			'-': resolve(__dirname, 'src')
		}
	},
	plugins: [
		new webpack.ProvidePlugin({
			$: 'jquery' ,
			JQuery: 'jquery'
		}),
	]
	//使用
	//import stickTop from'~/components/stickTop'
	
};